package com.gitee.wsl.lifecycle.nav

import com.gitee.wsl.concurrent.api.cancel.Cancellable

/**
 * Represents a generic source of navigation events.
 *
 * @see [children]
 */
fun interface NavigationSource<out T> {

    fun subscribe(observer: (T) -> Unit): Cancellable
}